﻿/*======================================*\
 * Author: 廖国添
 * LastModifyUser: 廖国添
 * Description: 表字段信息DTO
 * CreateTime：2013-1-15 21:50:48
 * ModifyTime:  
 * Remark: 代码生成器v0.1 by 廖国添
\*======================================*/
using System;
using ZLDC.GenericFrame.Entity.Attributes;
using ZLDC.GenericFrame.Entity;
namespace ZLDC.Entity
{
    /// <summary>
    ///  t_Cart 代码生成器生成的代码
    /// </summary>
   [Serializable]
   [TableProperty(DefaultOrderby = "Id Desc",DbType = DbTypeEnum.SqlServer, ConnAppKey = "DefaultDb", PrimaryKey = "Id", TableName = "t_Cart")]
   public partial class t_Cart : BaseEntity
   {
       #region 私有属性
	    		 private int _id;
		 private int? _userid;
		 private int? _goodsid;
		 private string _goodsname;

	   #endregion
	    
	   #region 公有属性
	   		 /// <summary> 
		 ///  
		/// <para>主键列</para> 
		/// </summary> 
		[ColumnProperty( IsAutoAdd =true, ColumnName = "Id") ]
		 public int Id
		 { 
			set 
			 { 
				object oldValue = _id;
				_id = value ;
				this.OnPropertyChanged("Id", _id, oldValue);
			 } 
			get{ return _id;} 
  		 } 

		 /// <summary> 
		 ///  
		/// </summary> 
		[ColumnProperty(ColumnName = "userId")]
		public int? userId
		{ 
			set 
			{  
				object oldValue = _userid;
				_userid = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("userId", _userid, oldValue);
					this.OnPropertyMappingChanged("userId", _userid, oldValue);
				}  
			} 
 			get{ return _userid;} 
  		 } 

		 /// <summary> 
		 ///  
		/// </summary> 
		[ColumnProperty(ColumnName = "goodsId")]
		public int? goodsId
		{ 
			set 
			{  
				object oldValue = _goodsid;
				_goodsid = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("goodsId", _goodsid, oldValue);
					this.OnPropertyMappingChanged("goodsId", _goodsid, oldValue);
				}  
			} 
 			get{ return _goodsid;} 
  		 } 

		 /// <summary> 
		 ///  
		/// </summary> 
		[ColumnProperty(ColumnName = "goodsName")]
		public string goodsName
		{ 
			set 
			{  
				object oldValue = _goodsname;
				_goodsname = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("goodsName", _goodsname, oldValue);
					this.OnPropertyMappingChanged("goodsName", _goodsname, oldValue);
				}  
			} 
 			get{ return _goodsname;} 
  		 } 


	   #endregion
	   
	   
   }
}
